package br.com.caelum.vraptor.controller;

import javax.inject.Inject;

import br.com.caelum.vraptor.Controller;
import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.components.UsuarioWeb;

@Controller
public class Index2Controller {
    @Inject
    private UsuarioWeb usuarioWeb;
	private final Result result;

	/**
	 * @deprecated CDI eyes only
	 */
	public Index2Controller() {
		this(null);
	}
	
	@Inject
	public Index2Controller(Result result) {
		this.result = result;
	}

	public void index2() {
		result.include("variable", "VRaptor!");
	}
}